package com.hmall.common.client;

import com.hmall.common.dto.SearchDTO;
import com.hmall.common.vo.SearchVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient("searchservice")
@RequestMapping("/search")
public interface SearchClient {

    @PostMapping("/filters")
    SearchVO filters(@RequestBody SearchDTO searchDTO);
}
